package deep.classloader;

import org.junit.Test;

public class LoadSameClass extends ClassLoader {
	@Test
	public void loadSameClassInDifferentPath() throws ClassNotFoundException {
		MyClassLoader mycl = MyClassLoader.getMyClassLoader();
		mycl.setRootDir("C:\\Users\\Administrator\\Desktop\\myclass");
		Class clazz1 = mycl.selfloadClass("deep.beans.Person", false);
		mycl.setRootDir("C:\\Users\\Administrator\\Desktop\\myclass2");
		Class clazz2 = mycl.selfloadClass("deep.beans.Person", false); 
	}

}
